package hk.ust.android_competition.data_reload_tools;

import com.google.gson.Gson;

import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;

/**
 * Created by Silver on 2/1/15.
 */
public class DataReloader {
    private String path;
    private BufferedReader br;

    public DataReloader(String path) {
        this.path = path;
        load();
    }

    public BufferedReader getBr() {
        return br;
    }

    private void load() {
        try {
           br = new BufferedReader(
                    new FileReader(path));
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }
}
